package cn.zqh.commodity.mapper;

import cn.zqh.bean.bo.Commodity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zqh
 * @since 2022-12-24
 */
public interface CommodityMapper extends BaseMapper<Commodity> {

    /**
      * @Author: zqh
      * @Date:
      * @Description: 获取删除或者未删除商品的数量
    */
    Integer getCoNumber(@Param("del") Integer del);

    /**
      * @Author: zqh
      * @Date:
      * @Description: 获取被删除的商品
    */
    List<Commodity> getDelComs(Integer page,Integer size);

    /**
      * @Author: zqh
      * @Date:
      * @Description: 修改商品信息
    */
    void updateCommodityIsdel(@Param("id") String id);


}
